<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery-1.8.3.js" type="text/javascript"></script>
</head>
<script>
    $(function () {
        $.ajax({
            url:"GetJsonNewsServlet",
            type:"POST",
            dataType:"json",
            success:function (data) {
                $.each(data,function(i,n){
                    var $tr="<tr>"+"<td>"+n.newId+"</td>"
                        +"<td>"+n.title+"</td>"
                        +"<td>"+n.writeDate+"</td>"+"</tr>";
                    $("#mytab").append($tr);
                    })
            },
            error: function (jqXHR, textStatus, errorThrown) {
                console.log("responseText====" + jqXHR.responseText);
                console.log("status====" + jqXHR.status);
                console.log("readyState====" + jqXHR.readyState);
                console.log("statusText===" + jqXHR.statusText);

                console.log("textStatus====" + textStatus);
                console.log("errorThrown====" + errorThrown);

            }


        })
    })



</script>
<body>
<table id="mytab">
    <tr>
        <th>编号</th>
        <th>标题</th>
        <th>发布日期</th>
    </tr>

</table>

</body>
</html>